
    <h5>Referance No:<?php echo $referance_no; ?></h5>
<p align="right"><a href="<?php echo site_url('people/purchaser/create_purchaser');?>"></a></p>
<!--<div id="infoMessage"><?php echo $message;?></div>-->

<table class="table table-striped table-bordered" width="100%" >
	<thead>
    <tr>
		<th>Product name</th>
		<th>Quantity</th>
        <th>Rate</th>
        <th>Amount</th>
        <th>tax</th>
        <th>Discount</th>
		<th>Toatal Price</th>	
	</tr>
    </thead>
	<?php foreach ($users as $user):?>
		<tr>
			<td><?php  echo $this->purchase_model->get_product_details($user->id_product); ?></td>
			<td><?php  echo $user->quantity." ".$this->purchase_model->get_unit($user->id_product); ?></td>
            <td><?php  echo $user->rate; ?></td>
            <td><?php  echo $user->amount; ?></td>
			<td><?php  echo $user->tax; ?>%</td>
            <td><?php  echo $user->discount; ?>%</td>
			<td><?php  echo $user->total; ?></td>
		</tr>
	<?php endforeach;?>
</table>

<!--<p><a href="<?php echo site_url('auth/create_user');?>">Create a new user</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->
